package test2;

import java.util.concurrent.CountDownLatch;

public class Test {
    public static void main(String[] args) {
        CountDownLatch countDownLatch = new CountDownLatch(2);

        ThreadA ta=new ThreadA(countDownLatch);
        ThreadB tb=new ThreadB(countDownLatch);

        ta.start();
        tb.start();
    }
}
